import request from '@/utils/request'
export default{

    //1、 条件查询分页方法
    getPageBanners(page,limit,crmBanner){
        return request({     

            url: `/educms/banneradmin/pageBanner/${page}/${limit}`,
            method: 'post',
            data: crmBanner

        })

    },
    //2，逻辑删除图片
    deleteBannerById(id){

        return request({
           url: `/educms/banneradmin/${id}`,
           method: 'delete',

        })
    },
    //2，添加图片addBanner
    addBanner(crmBanner){

        return request({
           url: `/educms/banneradmin/addBanner`,
           method: 'post',
           data: crmBanner

        })
    },
     //3，查询图片
     getById(id){

        return request({
           url: `/educms/banneradmin/${id}`,
           method: 'get'        
        })
    }
    ,
    updateBammer(crmBanner){

        return request({
           url: `/educms/banneradmin/updateBammer`,
           method: 'put',
           data: crmBanner   
        })
    }
}